package com.sjw;

import com.sjw.workflow.example.ExampleWorkflow;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 主程序入口
 * 演示Workflow托管管理系统
 */
public class Main {
    
    private static final Logger logger = LoggerFactory.getLogger(Main.class);
    
    public static void main(String[] args) {
        logger.info("Starting Workflow Management System Demo");
        
        try {
            // 创建并执行示例工作流
            ExampleWorkflow exampleWorkflow = new ExampleWorkflow();
            exampleWorkflow.executeExampleWorkflow();
            
            logger.info("Workflow Management System Demo completed successfully");
            
        } catch (Exception e) {
            logger.error("Demo execution failed", e);
            System.err.println("Demo execution failed: " + e.getMessage());
            e.printStackTrace();
        }
    }
}